pkgname=soc-qcom-sm8350
pkgdesc="Common package for Qualcomm sm8350 devices"
pkgver=5
pkgrel=2
url="https://postmarketos.org"
license="BSD-3-Clause"
arch="aarch64"
options="!check !archcheck !tracedeps"
depends="
	swclock-offset
	msm-modem
	msm-modem-uim-selection
"
subpackages="
	$pkgname-nonfree-firmware:nonfree_firmware
	$pkgname-nonfree-firmware-openrc:nonfree_firmware_openrc
"

package() {
	mkdir -p "$pkgdir"
}

nonfree_firmware() {
	pkgdesc="Modem, WiFi, and GPU Firmware"
	depends="pd-mapper tqftpserv msm-modem"
	mkdir -p "$subpkgdir"
}

nonfree_firmware_openrc() {
	install_if="$pkgname-nonfree-firmware=$pkgver-r$pkgrel openrc"
	install="$subpkgname.post-install"
	depends="pd-mapper-openrc tqftpserv-openrc"
	mkdir -p "$subpkgdir"
}
